{\rtf1\ansi\ansicpg1252\cocoartf1343\cocoasubrtf160
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatural

\f0\fs24 \cf0 This is based on the USB HID Keyboard project made from scratch with Harmony and the PS2 projects.  It all comes together to make a PS2 to USB translator.  However, it is not fully functional but it does mostly work.  Only 1 of the 6 USB buffers is used to cache the key presses.  This works fairly well since we do not wait on a key release.  All the limitations should be cleaned up in future projects. \
\
Copied CoreTimerDelay, KeyTranslator, PS2Keyboard, and PS2Protocol files into project.\
Removed non Harmony code from PS2Protocol.c\
Changed SYS_FREQ to use SYS_CLK_FREQ\
Copied keyboard translation array to app.c from main.c\
Added PS2Keyboard.h file to app.c\
Added KeyTranslator.h to app.c\
Added PS2K_Init() into APP_STATE_INIT\
Added TranslatorInit() into APP_STATE_INIT\
Added uint8_t keyboard_id; to APP_DATA structure.\
Added PS2_Keyboard_Int, Translated_Key, and Translated_Command call back functions in app.c\
Added BeginKeyTranslationMatrix and TranslatorCallback function calls to APP_STATE_INIT\
Added loop for the AddKeyTranslationMatrix function into APP_STATE_INIT\
Added PS2K_Callback and PS2K_ResetKeyboard function calls to APP_STATE_INIT\
Edited APP_EmulateKeyboard by commenting out the auto key increment.\
Edited Translated_Key to set the switch pressed and key variables.  (only 1 key at a time)\
Set project heap to 10000\
Copy interrupt code from ps2 project into system_interrupt.c\
Add keyboard_LED to APP_DATA\
Add initialization code for keyboard_id and keyboard_LED to APP_Initialize\
Edit APP_KeyboardLEDStatus to send LED command to PS2\
Edit Translated_Key to check for modifier keys and set the modifier bits.\
}